<?php

require_once "Zend/Exception.php";
require_once "Zend/Socket.php";

/**
 * @category   Zend
 * @package    Zend_Socket
 * @copyright  Salomon BRYS
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 *
 * This class is the standard exception for the Zend_Socket API.
 */
class Zend_Socket_Exception extends Zend_Exception
{
	/**
	 * The socket that caused the exception.
	 *
	 * @var Zend_Socket
	 */
	protected $socket = null;

	/**
	 *
	 * @param unknown_type $message
	 * @param Zend_Socket $socket
	 */
	public function __construct($message, $socket = null)
	{
		parent::__construct($message);

		$this->socket = $socket;
	}

	public function getSocket()
	{
		return $this->socket;
	}
}